import React from 'react'
import './App.css'
import { AuthenticatedApp } from './authenticatedApp'
import { useAuth } from './context/authContext'
import { UnAuthenticatedApp } from './unauthenticatedApp'

function App() {
	const { user } = useAuth()
	return (
		<div className="App">
			{user ? <AuthenticatedApp /> : <UnAuthenticatedApp />}
		</div>
	)
}

export default App
